package framework.base;

import framework.base.provider.LoadPrimaryKeyProvider;
import org.apache.ibatis.annotations.SelectProvider;
import tk.mybatis.mapper.annotation.RegisterMapper;

import java.util.List;

@RegisterMapper
public interface LoadPrimaryKeyMapper<T> {

    @SelectProvider(type = LoadPrimaryKeyProvider.class, method = "loadPrimaryKey")
    List<T> loadPrimaryKey(T obj);

    @SelectProvider(type = LoadPrimaryKeyProvider.class, method = "loadPrimaryKeyByPK")
    T loadPrimaryKeyByPK(T obj);

}
